import { Toast } from "vant";

export const handleInput = (value,keyCode) => {
   
  // 判断是否含有表情
  const emojiRegex =
    /(\ud83c[\udf00-\udfff])|(\ud83d[\udc00-\ude4f])|(\ud83d[\ude80-\udeff])/g;
  if (emojiRegex.test(value)) {
    // keyCode=;
    Toast(`"不允许输入表情"${value.replace(emojiRegex, "")}`);
   value=keyCode
    // 含有表情，可以提示用户或者去除表情
    
  }
};
